﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chilkat;
using Xeno.Core;

namespace Xeno.Importers
{
    public class ColladaImporter : ResourceImporter 
    {

        public override bool CanImport(string path)
        {
            if (path.ToLower().Substring(path.Length - 3) == "dae")
            {
                Console.WriteLine("Can import:" + path);
                return true;
            }
            Console.WriteLine("Can not import:" + path);
            return false;
            //return base.CanImport(path);
        }
        public override XenoNode Import(string path, XenoNode parent)
        {
            Console.WriteLine("Entered MercEngine.ColladaImporter.Import");
            XenoNode root = null;

            if (parent != null)
            {
                root = new XenoNode(path, parent);
            }
            else
            {
                root = new XenoNode(path);
            }
            Xml doc = new Xml();
         

            return root;
            //return base.Import(path, parent);
        }

    }
}
